package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_ReadTypes实体类
 * 
 * @author 
 *
 */
public class RdReadtypes {
	/***/
	private Object ID; 
	/***/
	private Integer ReadID; 
	/***/
	private String UserNo; 
	/***/
	private String WaterTypeCode; 
	/***/
	private String AllotText; 
	/***/
	private Integer Amount; 
	/**
	 * 实例化
	 */
	public RdReadtypes() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public RdReadtypes(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("ReadID") instanceof Number) {
			this.setReadID(((Number) obj.get("ReadID")).intValue());
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("WaterTypeCode") instanceof String) {
			this.setWaterTypeCode((String) obj.get("WaterTypeCode"));
		}
		if (obj.get("AllotText") instanceof String) {
			this.setAllotText((String) obj.get("AllotText"));
		}
		if (obj.get("Amount") instanceof Number) {
			this.setAmount(((Number) obj.get("Amount")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getReadID() != null) {
			result.put("ReadID",this.getReadID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getWaterTypeCode() != null) {
			result.put("WaterTypeCode",this.getWaterTypeCode());
		}
		if (this.getAllotText() != null) {
			result.put("AllotText",this.getAllotText());
		}
		if (this.getAmount() != null) {
			result.put("Amount",this.getAmount());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取ReadID
	 * 
	 * @return
	 */
	public Integer getReadID() {
		return ReadID;
	}

	/**
	 * 设置ReadID
	 * 
	 * @param ReadID
	 */
	public void setReadID(Integer ReadID) {
		this.ReadID = ReadID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取WaterTypeCode
	 * 
	 * @return
	 */
	public String getWaterTypeCode() {
		return WaterTypeCode;
	}

	/**
	 * 设置WaterTypeCode
	 * 
	 * @param WaterTypeCode
	 */
	public void setWaterTypeCode(String WaterTypeCode) {
		this.WaterTypeCode = WaterTypeCode;
	}
	
	/**
	 * 获取AllotText
	 * 
	 * @return
	 */
	public String getAllotText() {
		return AllotText;
	}

	/**
	 * 设置AllotText
	 * 
	 * @param AllotText
	 */
	public void setAllotText(String AllotText) {
		this.AllotText = AllotText;
	}
	
	/**
	 * 获取Amount
	 * 
	 * @return
	 */
	public Integer getAmount() {
		return Amount;
	}

	/**
	 * 设置Amount
	 * 
	 * @param Amount
	 */
	public void setAmount(Integer Amount) {
		this.Amount = Amount;
	}

	@Override
	public String toString() {
		return "RdReadtypes [ID=" + ID + " , ReadID=" + ReadID + " , UserNo=" + UserNo + " , WaterTypeCode=" + WaterTypeCode + " , AllotText=" + AllotText + " , Amount=" + Amount + "  ]";
	
	}
	
	
}
